package com.iap.client.context
{
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	import com.iap.client.mediator.InstanceEditWindowMediator;
	import com.iap.client.view.instance.InstanceEditWindow;
	import com.iap.common.command.ClientInstanceCommand;
	import com.iap.common.command.InstanceCommand;
	import com.iap.common.service.ClientInstanceService;
	import com.iap.common.service.IClientInstanceService;
	import com.iap.common.service.IInstanceService;
	import com.iap.common.service.InstanceService;
	import com.iap.common.signal.ClientInstanceRequestSignal;
	import com.iap.common.signal.InstanceRequestSignal;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class InstanceEditWindowContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(IAppData, AppData);
			injector.mapSingletonOf(IInstanceService, InstanceService);
			injector.mapSingletonOf(IClientInstanceService, ClientInstanceService);
			
			signalCommandMap.mapSignalClass(ClientInstanceRequestSignal, ClientInstanceCommand);
			
			mediatorMap.mapView(InstanceEditWindow, InstanceEditWindowMediator);
		}
	}
}